var gulp = require('gulp')
var cssmin = require('gulp-minify-css')
var clean = require('gulp-clean')
var autoprefixer = require('autoprefixer')
var postcss = require('gulp-postcss')
var path = require('path')
var config = {
  buildPath: 'build',
  path: {
    css: 'build/css'
  }
}

gulp.task('clean', function () {
  return gulp.src(config.buildPath + '/*', { read: false }).pipe(clean({ force: true }))
})

gulp.task('cssmin', function () {
  return gulp.src('src/*.css')
    .pipe(postcss([autoprefixer()]))
    .pipe(gulp.dest(config.path.css))
})

